Skip to main content
POST
Create collection payment promise

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Promise to record

amount
string
required

Promised amount in major units, as a decimal string. At most what the case invoices still owe.

Pattern: ^\d+(\.\d+)?$
Example:

"1250.00"

promised_for
string<date-time>
required

Day the customer promised to pay.

Example:

"2024-12-20T16:04:11Z"

source
enum<string>
default:user

Where the promise was made.

Available options:
portal,
email,
call,
user

Response

id
string
required

Payment promise ID.

Example:

"cpp_7dQ3W1hpbM1yXv"

case_id
string
required

ID of the case the promise was made on.

Example:

"ccs_3GeHvsTaFsPgMf"

amount
string
required

Promised amount in major units, as a decimal string.

Pattern: ^\d+(\.\d+)?$
Example:

"1250.00"

currency
enum<string>
required

Currency of the promised amount.

Available options:
EUR,
AED,
AFN,
XCD,
ALL,
AMD,
AOA,
ARS,
USD,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
XOF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
NOK,
BWP,
BYR,
BZD,
CAD,
CDF,
XAF,
CHF,
NZD,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
ANG,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
MAD,
ERN,
ETB,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
XPF,
NGN,
NIO,
NPR,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SSP,
STD,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
UYU,
UZS,
VEF,
VND,
VUV,
WST,
YER,
ZAR,
ZMW,
ZWL
Example:

"EUR"

promised_for
string<date-time>
required

Day the customer promised to pay.

Example:

"2024-12-20T16:04:11Z"

source
enum<string>
required

Where the promise was made.

Available options:
portal,
email,
call,
user
status
enum<string>
required

Status of the promise.

Available options:
pending,
kept,
broken,
cancelled
created_at
string<date-time>
required

Creation date.

Example:

"2024-12-20T16:04:11Z"

updated_at
string<date-time>
required

Last update date.

Example:

"2024-12-20T16:04:11Z"